import matplotlib.pyplot as plt

# 数据
years = ['2023', '2022', '2021']
revenue = [40091704.49, 32859398.75, 13035579.64]

# 创建柱形图
plt.bar(years, revenue, color='skyblue')

# 在每个柱子上添加数值标签
for i, v in enumerate(revenue):
    plt.text(i, v + 1000, str(v), ha='center', color='black')

# 设置标题和坐标轴标签
plt.title('Ningde Times Revenue Comparison')
plt.xlabel('Time (Year)')
plt.ylabel('Revenue (Ten thousand yuan)')

# 显示图表
plt.show()